package com.jleo

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2010-12-19
 * Time: 16:32:37
 * To change this template use File | Settings | File Templates.
 */
class BankInfoBuffer {
  def bankInfoList = new java.util.concurrent.ArrayBlockingQueue(1000)
  def produceFinish

  def produce(String bi) {
    bankInfoList.put bi
  }

  String consume() {
    bankInfoList.take()
  }

  int size() {
    bankInfoList.size()
  }
}
